package com.zzl.finance.order.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.zzl.finance.order.dto.OrderInvoiceInfo;
import com.zzl.finance.order.dto.OrderInvoiceTotalInfoDto;
import com.zzl.finance.order.dto.OrderPageDto;
import com.zzl.finance.order.entity.OrderInvoiceEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author sunpp
 * @email 1171813232@qq.com
 * @date 2022-03-07 10:41:16
 */
@Mapper
@SuppressWarnings("javadoc")
public interface OrderInvoiceDao extends BaseMapper<OrderInvoiceEntity> {

    /**
     * 查询包含逻辑删除的数据集合
     *
     * @param orderInvoiceEntity 对象
     * @return 包含逻辑删除的数据集合
     */
    List<OrderInvoiceEntity> listIncludeDel(OrderInvoiceEntity orderInvoiceEntity);

    OrderInvoiceTotalInfoDto totalInfo(@Param("enterpriseId") String enterpriseId);

    IPage<OrderInvoiceInfo> queryOrderPage(IPage<OrderInvoiceInfo> page, Map<String, Object> params);
}
